#include<stdio.h>
#include<windows.h>

int main()
{
	int i,j,a[101];
	for (i=2;i<=100;i++)	a[i]=1;
	for (j=2;j<=10;j++)
	{
		for (i=3;i<=100;i++)
		if (i%j==0&&i!=j)	a[i]=0;
	}
	for (i=2;i<=100;i++)	if (a[i]==1) printf("%d\n",i);
	system("pause");
	return 0;
}
